<?php
/**
Exibe as informa��es que foram inseridas no formul�rio de cadastro do Programa.
Ap�s confirmada, as informa��es ser�o inseridas no banco de dados.
*/

if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}


// dados do formul�rio vindos de CadastrarPrograma.php
$anoId 		  = $_POST['AnoId']; 
$codResumido  = $_POST['codResumido'];
$codCompleto  = $_POST['codCompleto'];
$nomePrograma = $_POST['nomePrograma']; 

$ano = new Ano();
$anoSelecionado = $ano->CarregarAno( $anoId );
?>
<html>
           <head>
           <title>SAEO - Confirmar Cadastro do Programa</title>
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           <link rel='stylesheet' type='text/css' href='templates/estilos.css'>
           </head>
     <body class='body' ">
     <form name='confirmar_cadastro_Programa' action='EnviarDadosNomePrograma.php?operacao=1' method='post'>
     <table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
            <tr>
				<td><?php include "Topo.php"; ?> </td>
			</tr>
            <tr>
                <td><div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.jpg)'>CONFIRMAR CADASTRO DO PROGRAMA</div></td>
            </tr>
            <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
            <tr>
                <td><table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                           <tr>
                               <td>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas' width='30%'>&nbsp;Ano:</td>
                               <td class='textoTabelas'><?php echo $anoSelecionado->ano ?></td>
                               <input type='hidden' name='AnoId' value='<?php echo $anoId ?>'>
                           </tr>
                           
                   		   <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'>&nbsp;Nome:</td>
                               <td class='textoTabelas'><?php echo $nomePrograma ?></td>
                               <input type='hidden' name='nomePrograma' value='<?php echo $nomePrograma ?>'>
                           </tr>                           
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td colspan='2' height='46'><div style='position:relative;left:220px'><img style='width:100px;height:30px;cursor:pointer;' src='templates/btvoltar.JPG' onclick='javascript: history.go(-1);'>&nbsp
                               <input type='image' style='width:100px;height:30px;' src='templates/btavancar.JPG'/></div></td>
                           <tr>
                     </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tfoot>
           <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
                   <tr><?php include 'rodapeCreditos.php'; ?></tr>
            </tfoot>
     </table>
     </form>
     </body>
     </html>